﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Profile;
using System.Web.Security;

namespace CMS.PBDesk.Framework.Web
{
    public class MemberProfile : ProfileBase
    {


        [SettingsAllowAnonymous(false)]
        public string FirstName
        {
            get
            {
                var o = base.GetPropertyValue("firstName");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("firstName", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string LastName
        {
            get
            {
                var o = base.GetPropertyValue("lastName");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("lastName", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string DisplayName
        {
            get
            {
                var o = base.GetPropertyValue("displayName");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("displayName", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string LoginProvider
        {
            get
            {
                var o = base.GetPropertyValue("loginProvider");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("loginProvider", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string LoginProviderUID
        {
            get
            {
                var o = base.GetPropertyValue("loginProviderUID");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("loginProviderUID", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string AuthenticationProvider
        {
            get
            {
                var o = base.GetPropertyValue("authenticationProvider");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("authenticationProvider", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string AuthenticationProviderUID
        {
            get
            {
                var o = base.GetPropertyValue("authenticationProviderUniqueID");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("authenticationProviderUniqueID", value);
            }
        }

        [SettingsAllowAnonymous(false)]
        public string ThumbnailUrl
        {
            get
            {
                var o = base.GetPropertyValue("thumbnailUrl");
                if (o == DBNull.Value)
                {
                    return string.Empty;
                }
                return (string)o;
            }
            set
            {
                base.SetPropertyValue("thumbnailUrl", value);
            }
        }
    }
}
